<script language="JavaScript">

    function generateRandom() {
      return Math.floor((1 + Math.random()) * 0x10000)
        .toString(16)
        .substring(1);
    }

    requestID = null;
    XMLHttpRequest.prototype.reallyOpen = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function(method, url, async, user, password) {
        requestID = generateRandom()
        if(method.indexOf("POST")!=-1 && url.indexOf("gee") == -1){
            var signed_url = url + "AJAXINTERCEPT" + requestID;
            this.reallyOpen(method, signed_url , async, user, password);
        }else {
            this.reallyOpen(method, url , async, user, password);
        }
    };

    XMLHttpRequest.prototype.reallySend = XMLHttpRequest.prototype.send;
    XMLHttpRequest.prototype.send = function(body) {
        interception.customAjax(requestID, body);
        this.reallySend(body);
    };
</script>